import datetime
import random
#全局变量模块
CumulativeFlow = 0
activePower = 0
InletPressure = random.randint(20, 25)
OutletPressure = random.randint(100, 110)
InstantaneousFlow = random.randint(30, 50)

def activePowerAcc():
    global activePower
    activePower = activePower + 0.0003
    return activePower


def CumulativeFlowAcc():
    global CumulativeFlow
    CumulativeFlow = CumulativeFlow + 0.005
    return CumulativeFlow

